/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Controleur;

import Modele.Grille;
import Vue.Fenetre;
import javax.swing.SwingUtilities;

/**
 *
 * @author Raphaël
 */
public class Main {

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                Grille tab;
                tab = new Grille();
                Controleur controle = new Controleur(tab);
                //On crée une nouvelle instance de notre JDialog
                Fenetre fenetre = new Fenetre(controle);

                fenetre.setVisible(true);//On la rend visible

                controle.tab.nouvellePartie();

            }
        });

    }
}
